// 通用接口
import {
	$request
} from '../request.js'
// 微信登录
export const userphone = (data, config) => $request('index.php/api/login/wxlogin', data, config, 'POST')
// 附近店铺
export const getshop = (data, config) => $request('index.php/api/index/getshop', data, config, 'POST')
// 选择门店
export const xzmendian = (data, config) => $request('index.php/api/user/xzmendian', data, config, 'POST')
// 首页信息
export const homeinfo = (data, config) => $request('index.php/api/index/caozuozn', data, config, 'POST')
// 公告详情
export const ggdetail = (data, config) => $request('index.php/api/index/czzhinan', data, config, 'POST')
// 活动详情
export const activedetail = (data, config) => $request('index.php/api/index/project', data, config, 'POST')
// 公告列表
export const comlist = (data, config) => $request('index.php/api/index/comlist', data, config, 'POST')
// 输入激活码
export const shurujhma = (data, config) => $request('index.php/api/user/jhma', data, config, 'POST')
// 问题
export const wentiinit = (data, config) => $request('index.php/api/index/wenti', data, config, 'POST')
// 用户中心
export const userinfo = (data, config) => $request('index.php/api/user/index', data, config, 'POST')
// 首页轮播
export const bannerList = (data, config) => $request('index.php/api/index/banner', data, config, 'POST')
// 答题并分享
export const fenxaing = (data, config) => $request('index.php/api/user/fenxaing', data, config, 'POST')
// 奖码记录
export const jiangma = (data, config) => $request('index.php/api/user/jiangma', data, config, 'POST')
// 奖品记录
export const jiangpin = (data, config) => $request('index.php/api/user/jiangpin', data, config, 'POST')
// 反馈列表
export const yijianlog = (data, config) => $request('index.php/api/user/yijianlog', data, config, 'POST')
// 反馈类型
export const feedtype = (data, config) => $request('index.php/api/user/feedtype', data, config, 'POST')
// 提交反馈
export const addfeed = (data, config) => $request('index.php/api/user/addfeed', data, config, 'POST')
// 修改头像。昵称
export const userprofile = (data, config) => $request('index.php/api/user/profile', data, config, 'POST')
// 开启审核
export const passopen = (data, config) => $request('index.php/api/index/passopen', data, config, 'POST')



//登录
export const indexLbGoods = (data, config) => $request('api/wanlshop.product/indexLbGoods', data, config, 'POST')
//首页通知公告
export const indexlistmsg = (data, config) => $request('api/wanlshop.notice/list', data, config, 'POST')
//商品详情
export const goods = (data, config) => $request('api/wanlshop.product/goods', data, config, 'POST')
//热门推销
export const hotGoods = (data, config) => $request('api/wanlshop.product/hotGoods', data, config, 'POST')
//热销商品
export const rxGoods = (data, config) => $request('api/wanlshop.product/rxGoods', data, config, 'POST')
//精选商品
export const jxGoods = (data, config) => $request('api/wanlshop.product/jxGoods', data, config, 'POST')
//商品分类列表
export const category = (data, config) => $request('api/wanlshop/product/category', data, config, 'POST')
//商品列表
export const productlists = (data, config) => $request('api/wanlshop/product/lists', data, config, 'POST')
//DIY商品列表
export const DiYgoodslist = (data, config) => $request('api/diy/goodslist', data, config, 'POST')
//微信登录
// export const userphone = (data, config) => $request('api/wanlshop/user/phone', data, config, 'POST')
//模拟登录
export const mobilelogin = (data, config) => $request('api/user/mobilelogin', data, config, 'POST')
//个人中心
export const userefresh = (data, config) => $request('api/wanlshop/user/refresh', data, config, 'POST')
//我的收藏
export const collect = (data, config) => $request('api/wanlshop/product/collect', data, config, 'POST')
//取消收藏
export const follow = (data, config) => $request('api/wanlshop.product/follow', data, config, 'POST')
//关注店铺列表
export const myShopFollow = (data, config) => $request('api/wanlshop/shop/myShopFollow', data, config, 'POST')
//关注/取消关注店铺
export const shopfollow = (data, config) => $request('api/wanlshop/shop/follow', data, config, 'POST')
//足迹列表
export const footprint = (data, config) => $request('api/wanlshop.product/footprint', data, config, 'POST')
//删除浏览足迹
export const delFootPrint = (data, config) => $request('api/wanlshop.product/delFootPrint', data, config, 'POST')
//优惠券列表
export const getMyList = (data, config) => $request('api/wanlshop/coupon/getMyList', data, config, 'POST')
//帮助中心
export const helplist = (data, config) => $request('api/help/list', data, config, 'POST')
//商家入驻
export const apply = (data, config) => $request('api/wanlshop/entry/apply', data, config, 'POST')
//意见反馈列表
export const lists = (data, config) => $request('api/wanlshop.feedback/lists', data, config, 'POST')
//提交意见反馈
export const feedbackadd = (data, config) => $request('api/wanlshop.feedback/add', data, config, 'POST')
//意见反馈列表
export const detail = (data, config) => $request('api/wanlshop.feedback/detail', data, config, 'POST')
//操作购物车
export const storage = (data, config) => $request('api/wanlshop.cart/storage', data, config, 'POST')
//购物车列表
export const synchro = (data, config) => $request('api/wanlshop.cart/synchro', data, config, 'POST')
//提交订单
export const addOrder = (data, config) => $request('api/wanlshop/order/addOrder', data, config, 'POST')
//立即购买
export const getOrderGoodsList = (data, config) => $request('api/wanlshop/order/getOrderGoodsList', data, config,
	'POST')
//立即购买
// export const getOrderGoodsList = (data, config) => $request('api/wanlshop/order/getOrderGoodsList', data, config, 'POST')
//获取地址
export const area = (data, config) => $request('api/wanlshop/common/area', data, config, 'POST')
//提交收货地址
export const address = (data, config) => $request('api/wanlshop/address/address', data, config, 'POST')
//微信支付
export const payment = (data, config) => $request('api/wanlshop/pay/payment', data, config, 'POST')
//收货地址列表
export const getaddress = (data, config) => $request('api/wanlshop/address/getaddress', data, config, 'POST')
//删除地址
export const deladdress = (data, config) => $request('api/wanlshop/address/deladdress', data, config, 'POST')
//获取订单列表
export const getOrderList = (data, config) => $request('api/wanlshop/order/getOrderList', data, config, 'POST')
//订单详情
export const getOrderInfo = (data, config) => $request('api/wanlshop/order/getOrderInfo', data, config, 'POST')
//取消订单
export const cancelOrder = (data, config) => $request('api/wanlshop/order/cancelOrder', data, config, 'POST')
//删除订单
export const delOrder = (data, config) => $request('api/wanlshop/order/delOrder', data, config, 'POST')
//确认收货
export const confirmOrder = (data, config) => $request('api/wanlshop/order/confirmOrder', data, config, 'POST')
//修改收货地址
export const editOrderAddress = (data, config) => $request('api/wanlshop/order/editOrderAddress', data, config, 'POST')
//申请售后
export const addApply = (data, config) => $request('api/wanlshop/refund/addApply', data, config, 'POST')
//热门动态
export const hot = (data, config) => $request('api/wanlshop/find.find/hot', data, config, 'POST')
//动态列表
export const getList = (data, config) => $request('api/wanlshop/find.find/getList', data, config, 'POST')
//动态详情
export const commentsgetList = (data, config) => $request('api/wanlshop/find.comments/getList', data, config, 'POST')
//添加评论
export const commentsadd = (data, config) => $request('api/wanlshop/find.comments/add', data, config, 'POST')
//动态商品列表
export const getGoodsList = (data, config) => $request('api/wanlshop/find.find/getGoodsList', data, config, 'POST')
//发布动态
export const findadd = (data, config) => $request('api/wanlshop/find.find/add', data, config, 'POST')
//搜索历史
export const searchList = (data, config) => $request('api/wanlshop/common/searchList', data, config, 'POST')
//删除搜索历史
export const delSearchList = (data, config) => $request('api/wanlshop/common/delSearchList', data, config, 'POST')
//公告详情
export const newsdetail = (data, config) => $request('api/wanlshop.notice/detail', data, config, 'POST')
//喜欢该条动态
export const setFindUser = (data, config) => $request('api/wanlshop/find.user/setFindUser', data, config, 'POST')
//动态详情
export const findetail = (data, config) => $request('api/wanlshop/find.find/detail', data, config, 'POST')
//评论点赞
export const likeData = (data, config) => $request('api/wanlshop/find.comments/likeData', data, config, 'POST')
//评论点赞
export const myFindDetail = (data, config) => $request('api/wanlshop/find.find/myFindDetail', data, config, 'POST')
//领取优惠劵
export const couponreceive = (data, config) => $request('api/wanlshop/coupon/receive', data, config, 'POST')
//查询可使用优惠劵
export const couponquery = (data, config) => $request('api/wanlshop/coupon/query', data, config, 'POST')
//升级记录
export const petLevelLog = (data, config) => $request('api/pet/petLevelLog', data, config, 'POST')
//晋升规则
export const richtext = (data, config) => $request('api/index/richtext', data, config, 'POST')
//宠物等级
export const petLevel = (data, config) => $request('api/pet/petLevel', data, config, 'POST')
//查询
export const noticeunread = (data, config) => $request('api/wanlshop.notice/unread', data, config, 'POST')

//修改为默认地址
export const setDefault = (data, config) => $request('api/wanlshop/address/setDefault', data, config, 'POST')
//商家入驻信息
export const applyInfo = (data, config) => $request('api/wanlshop/entry/applyInfo', data, config, 'POST')
//物流
export const getLogistics = (data, config) => $request('api/wanlshop/order/getLogistics', data, config, 'POST')
// 获取是否小程序审核
export const getwxcheck = (data, config) => $request('api/index/getwxcheck', data, config, 'POST')
// 获取是否小程序审核
export const getRefundInfo = (data, config) => $request('api/wanlshop/refund/getRefundInfo', data, config, 'POST')
//关闭退款
export const closeRefund = (data, config) => $request('api/wanlshop/refund/closeRefund', data, config, 'POST')
//修改退款信息
export const editRefund = (data, config) => $request('api/wanlshop/refund/editRefund', data, config, 'POST')
//获取access_token
export const getAssectToken = (data, config) => $request('api/wanlshop/user/getAssectToken', data, config, 'POST')
//提交快递
export const toExpress = (data, config) => $request('api/wanlshop/refund/toExpress', data, config, 'POST')